import http from '@/utils/http/axios'
export interface DictionaryParams {
  dictNames: string
}

export interface BasicResponseModel<T = any> {
  code: number
  message: string
  data: T
}
/**
 * @description: 根据名称查询字典
 */
export function getDictionary(params: DictionaryParams) {
  return http.request<BasicResponseModel>(
    {
      url: '/api/dictionary/iu/list',
      method: 'GET',
      params
    },
    {
      joinTime: true
    }
  )
}
